﻿using System;
using System.Runtime.InteropServices;

namespace Jodell.Transport.Ethercat
{
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
    public struct ec_adapter
    {
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.EC_MAXLEN_ADAPTERNAME)]
        public string name;

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.EC_MAXLEN_ADAPTERNAME)]
        public string desc;

        public IntPtr next;
    }
}
